package com.itheima.Demo01.demo01;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;

public class Test03 {
    public static void main(String[] args) throws IOException {
        FileReader file = new FileReader(new File("day0628-code\\a.txt"));

        int a;
        while ((a = file.read()) != -1) {
            System.out.println((char) a);
        }
        file.close();
    }
}
